package com.szcinda.controller;

import com.szcinda.repository.ExportLog;
import com.szcinda.service.dto.log.ExportLogService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("exportLog")
public class ExportLogController {
    private final ExportLogService exportLogService;

    public ExportLogController(ExportLogService exportLogService) {
        this.exportLogService = exportLogService;
    }

    @PostMapping("update")
    public Result<String> update(@RequestBody ExportLog log) {
        exportLogService.update(log);
        return Result.success();
    }
}
